<?php
use Mirage\Web;
/**
 * Description of SiteController
 *
 * @author Bryan Salazar
 */
class SiteController extends FrontController
{
    
    
    public function actionIndex()
    {
        $this->redirect($this->createUrl('login'));
        $form = new UserForm();
        $this->view->render('site/site_overview');
    }
    
    public function actionView()
    {
        $this->view->render('site/site_view');
    }
    
    public function actionLogin()
    {
        
        $form = new LoginForm();
        
        
        
//        $this->view->layout = 'login';
//        $this->view->render('site/site_login',array('model'=>$model));
        echo $this->view->render('site/site_login.html',
                array('form'=>$form,
                    'baseUrl'=>Web::app()->baseUrl
                ));
    }
    
}
